/**
 * @用位于，位或，异或，按位逻辑运算
 *
 * @author	 wangshikun <wangshikun2：q：:：W：:W010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#define PR(x) printf("d=%d,octal=%o, hex=%x \n", x, x, x);

int main(int argc, char *argv[]) {
	unsigned a = 0252, b = 0xcc, x;
	
	printf("a=%u,b=%u\n", a, b);
	x = a & b; PR(x); 
	x = a | b; PR(x); 
	x = a ^ b; PR(x);
}
